<template>
  <ul class="todo-main">
    <!-- <MyItem v-for="todoObj in todoList" :key="todoObj.id" :todoObj="todoObj" :changeDone="changeDone"  :deleteTodo="deleteTodo"/> -->
    <!-- 样式来自 https://animate.style/ -->
    <transition-group appear name="animate__animated animate__bounce animate__faster"
      enter-active-class="animate__rotateIn" leave-active-class="animate__rotateOut">
      <MyItem v-for="todoObj in todoList" :key="todoObj.id" :todoObj="todoObj" />
    </transition-group>
  </ul>
</template>

<script>
import 'animate.css'  //导入安装的动画模式
import MyItem from "./MyItem";
export default {
  name: "MyList",
  components: {
    MyItem,
  },
  props: ["todoList"],
  data() {
    return {};
  },
  methods: {},
};
</script>

<style scoped>
/*main*/
.todo-main {
  margin-left: 0px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0px;
}

.todo-empty {
  height: 40px;
  line-height: 40px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding-left: 5px;
  margin-top: 10px;
}
</style>
